#include<bits/stdc++.h>
using namespace std;
const int N=1e5+10;
int a[N];
bool vis[N];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    cin>>n;
    for(int i=1;i<=n;i++){
        scanf("%d",&a[i]);
    }
    sort(a+1,a+n+1);
    int cnt=0;
    for(int i=1;i<n;i++){
        for(int j=i+1;j<=n;j++){
            if(vis[j]==0&&a[j]>a[i]){
                cnt++;
                vis[j]=1;
                i++;
            }
        }
    }
    int ans=n-cnt;
    printf("%d",ans);
    return 0;
}
